package cn.jeefast.modules.platform.controller;


import cn.jeefast.common.utils.R;
import cn.jeefast.modules.platform.service.MbFeedback1Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;
import cn.jeefast.common.base.BaseController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author theodo
 * @since 2020-01-10
 */
@RestController
@RequestMapping("/mbFeedback")
@CrossOrigin
public class MbFeedback1Controller extends BaseController {
    @Autowired
	private MbFeedback1Service mbFeedback1Service;

    /**
     * 反馈列表（分页）
     * @param page
     * @param limit
     * @return
     */
    @RequestMapping("/list")
    public R list(Integer page,Integer limit){
        page = (page-1)*limit;
        return mbFeedback1Service.fbList(page,limit);
    }
}
